<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>个人设置 - 系统设置</title>
</head>
<body>
<div class="main-inner">
    <div class="content-inner">
        <div class="person-left l">
            <div class="person-photo">
                <%-- 有头像的时候显示用户头像 --%>
                <c:if test="${not empty photoAtta}"><img src="${File_Server_Path}/${photoAtta.path}"/></c:if>
                <%-- 没有头像的时候使用默认头像 --%>
                <c:if test="${empty photoAtta}"></c:if>
            </div>
        </div>
        <div class="person-right r">
            <div class="meta-head c-64">
                <h3>
                    ${userDetail.realName}&nbsp;&nbsp;
                    <%-- 性别，男 --%>
                    <c:if test="${userDetail.sex eq '男' || empty userDetail.sex}"><i class="zy-sex-icon-m"></i></c:if>
                    <%-- 性别，女 --%>
                    <c:if test="${userDetail.sex eq '女'}"><i class="zy-sex-icon-f"></i></c:if>
                </h3>
            </div>
            <div class="zy-set-line c-78">
                ${userDetail.company}
            </div>
            <div class="zy-set-line c-64">
                <span><i class="zy-setjob-icon"></i>${userDetail.department}</span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${userDetail.position}</span>
            </div>
            <div class="zy-set-line">
                <div class="zy-input-group w-30">
                    <div class="zy-input-set-inner zy-i-disabled w-100">
                        <i class="zy-setname-icon"></i>
                        <input disabled type="text" value="${userDetail.username}" class="zy-i-input w-80"
                               placeholder="用户名">
                    </div>
                </div>
                <div class="zy-sp"></div>
                <div class="zy-input-group w-30">
                    <div class="zy-input-set-inner w-100">
                        <i class="zy-setmail-icon"></i>
                        <input type="text" value="${userDetail.email}" class="zy-i-input w-80" maxlength="50"
                               placeholder="邮箱" id="JQ_email" autocomplete="off">
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="zy-set-line">
                <div class="zy-input-group w-30">
                    <div class="zy-input-set-inner w-100">
                        <i class="zy-settell-icon"></i>
                        <input type="text" class="zy-i-input w-75" maxlength="13" placeholder="手机"
                               value="${session.moblie}" id="JQ_moblie" autocomplete="off">
                        <i class="zy-setedit-icon"></i>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="zy-set-line">
                <button class="zy-button zy-set-save userInfoSave" id="JQ_person_set_save" data-flag="info"
                        type="button"><i class="zy-setsave-icon"></i>保存
                </button>
                <div class="clear"></div>
            </div>
            <div class="zy-set-line">
                <hr>
            </div>
            <div class="meta-head">
                <h4><i class="zy-setpass-icon"></i>修改密码</h4>
                <div class="zy-set-line">
                    <div class="zy-input-group w-30">
                        <div class="zy-input-set-inner">
                            <input type="password" class="zy-i-input w-85" placeholder="原密码" id="JQ_oldPass">
                            <i class="zy-setedit-icon"></i>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="zy-set-line">
                    <div class="zy-input-group w-30">
                        <div class="zy-input-set-inner">
                            <input type="password" class="zy-i-input w-85" placeholder="新密码" id="JQ_newPass">
                            <i class="zy-setedit-icon"></i>
                        </div>
                    </div>
                    <div class="zy-sp"></div>
                    <div class="zy-input-group w-30">
                        <div class="zy-input-set-inner">
                            <input type="password" class="zy-i-input w-85" placeholder="再次输入" id="JQ_newPass1">
                            <i class="zy-setedit-icon"></i>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="zy-set-line">
                    <button class="zy-button zy-set-save userInfoSave" id="JQ_setting_save_pass" data-flag="pass"
                            type="button"><i class="zy-setsave-icon"></i>保存
                    </button>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ui -->
<script src="${pageContext.request.contextPath}/static/js/ui/ui-main.js"></script>
<!-- base -->
<script src="${pageContext.request.contextPath}/static/js/controller/base/base.controller.js"></script>
<!-- api -->
<script src="${pageContext.request.contextPath}/static/js/controller/api/setting.api.js"></script>
<!-- controller -->
<script src="${pageContext.request.contextPath}/static/js/controller/system/user/userSelfInfoController.js"></script>
</body>
</html>

